package com.newopenlab.hmc.util.stats;

import java.util.List;

import com.newopenlab.hmc.biz.Action;
import com.newopenlab.hmc.util.BaseHand;
import com.newopenlab.hmc.util.IPHSManager;
import com.newopenlab.hmc.util.Way;
import com.newopenlab.hmc.util.WayAction;

public class PFCallTo3BetManager implements IPHSManager{

	@Override
	public BaseHand calculateStats(String playerName, BaseHand hand) {
		BaseHand bh=hand;
		List<WayAction> actions=null;
		bh=StatsUtil.initStat(playerName,bh);
		
		if(StatsUtil.isCallTo3BetCount(playerName,bh, Way.PREFLOP.toString())){
			bh.stats.get(playerName).pfCall3BetCounter=1;
			if(StatsUtil.isCallTo3Bet(playerName,bh, Way.PREFLOP.toString())){
				bh.stats.get(playerName).pf3BETCall=true;
			}
		}
		
		return bh;
	}

}

